<?php

namespace App\Http\Controllers\api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;

class Swiper extends Controller
{
    public function getSwiper() {
        $swiper = DB::table('swiper')->orderByRaw('swiper_sort ASC')->get()->toArray();
        if ($swiper) {
            return returnData('800', '获取成功', $swiper);
        } else {
            return returnData('804', '无数据', $swiper);
        }
    }
}
